<%@ page language="java" contentType="text/html; charset=utf-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<%@ include file="/commons/commonList.jsp" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>装修验收-列表</title>
<script>
	//打开详细界面
	function openDetailPage(keyword,licenceId){//打开详细主页面
		var url = "${ctx}/renovation_inspectionRequisitionAction.do?method=showDetailPage&inspectionRequistionId=" + keyword +'&renovateLicenceID=' + licenceId;
   		top.windowOpen(url, "detailPage", "详细资料", 380,900);
	}
	function setInspectionRequisitionId(id){
		parent.setSelectItem(id);
	}
	function setSize() {
	  	parent.window.document.all('frameList').style.height=document.body.scrollHeight;
	}
</script>
</head>
<body onload="setSize()">
<div style="overflow:auto; height:210px;" >
<ec:ceTable items="resultDataList"
	action="${ctx}/houseMainLin_houseMainLineAction.do?method=queryInspectionRequisition&houseNumber=${houseNumber}"
	var="item"
	view="pmsview"
	styleClass="gridData2"
	rowsDisplayed="15">
	<ec:ceRow styleClass="grid" ondblclick="javascript:openDetailPage('${item.keyword}','${item.renovateLicenceID}');">
		<ec:ceColumn headerCell="pmsHeadrCell" title="房号" property="houseNumber"   width="10%"/>
		<ec:ceColumn headerCell="pmsHeadrCell" title="装修许可证号" property="renovateLicenceNO"   width="15%"/>
		<ec:ceColumn headerCell="pmsHeadrCell" title="业主姓名" property="owner"  width="11%"/>
		<ec:ceColumn headerCell="pmsHeadrCell" title="申请验收时间" property="inspectionDateStr"  sortable="true" width="11%"/>
		<ec:ceColumn headerCell="pmsHeadrCell" title="初验结果" property="firstInspectionResult"   width="12%">
			<c:choose>
				<c:when test="${item.firstInspectionResult eq '001'}">通过</c:when>
				<c:when test="${item.firstInspectionResult eq '002'}">不通过</c:when>
			</c:choose>
		</ec:ceColumn>
		<ec:ceColumn headerCell="pmsHeadrCell" title="复验结果" property="reinspectionResult"  width="15%">
			<c:choose>
				<c:when test="${item.reinspectionResult eq '001'}">新建</c:when>
				<c:when test="${item.reinspectionResult eq '002'}">竣工初验</c:when>
				<c:when test="${item.reinspectionResult eq '003'}">复验不通过</c:when>
				<c:when test="${item.reinspectionResult eq '004'}">复验通过</c:when>
			</c:choose>
		</ec:ceColumn>
		<ec:ceColumn headerCell="pmsHeadrCell" title="记录时间" property="annalDate" cell="date" format="yyyy-MM-dd HH:mm:ss" width="16%"/>
		<ec:ceColumn headerCell="pmsHeadrCell" title="记录人" property="annalMan"  width="8%"/>
	</ec:ceRow>
</ec:ceTable>
</div>

</body>
</html>